#include <QApplication>
#include <QPushButton>
#include <QQmlApplicationEngine>
#include <QtQuickControls2/QQuickStyle>

int main(int argc, char *argv[]) {

    QApplication a(argc, argv);

    // 在加载QML之前设置样式
    QQuickStyle::setStyle("Material"); // 例如：设置样式为Material

    QQmlApplicationEngine engine;
    engine.load(QUrl("qrc:/src/chapter02/GroupedAnimations1.qml"));

    if (engine.rootObjects().isEmpty())
        return -1;

    return a.exec();
}
